Systems and methods for network access control

ABSTRACT

Network access control systems and methods are provided herein. A method includes receiving at a network device a SYN packet from a client device over a network, determining if the client device is a trusted source for the network using the SYN packet, if the client device is a trusted resource, receiving an acknowledgement (ACK) packet from the client device that includes identifying information for the client device plus an additional value, and identifying information for the network device, and establishing a connection with the network for the client device.

CROSS REFERENCE TO RELATED APPLICATIONS

The present application is a continuation and claims the priority benefit of U.S. Nonprovisional patent application Ser. No. 14/261,322, filed on Apr. 24, 2014, entitled “SYSTEMS AND METHODS FOR NETWORK ACCESS CONTROL”, which claims the priority benefit of U.S. Provisional Application Ser. No. 61/816,099, filed on Apr. 25, 2013, which are hereby incorporated by reference herein in their entirety, including all references cited therein.

FIELD OF THE INVENTION

The present disclosure relates generally to data processing, more specifically to security mechanisms that may be employed by an Application Delivery Controller (ADC) to facilitate network access control and prevent malicious attacks such as a denial of service attack.

SUMMARY

According to some embodiments, the present technology is directed to a method for network access control, comprising: (a) receiving at a network device a SYN packet from a client device over a network, the SYN packet comprising identifying information for the client device; (b) determining if the client device is a trusted source for the network using the SYN packet; (c) if the client device is a trusted resource, receiving an acknowledgement (ACK) packet from the client device that includes identifying information for the client device plus an additional value, and identifying information for the network device; and (d) establishing a connection with the network for the client device, (e) otherwise dropping the SYN packet to deny network access to the client device.

According to some embodiments, the present technology is directed to a network arrangement comprising: (a) a network service; and (b) a network device that is configured to: (i) receive a SYN packet from a client device over a network, the SYN packet comprising identifying information for the client device; (ii) determine if the client device is a trusted source for the network using the SYN packet; (iii) if the client device is a trusted resource, receive an acknowledgement (ACK) packet from the client device that includes identifying information for the client device plus an additional value, and identifying information for the network device; and (iv) establish a connection with the network for the client device in such a way that the client device can use the network service, otherwise drop the SYN packet to deny network access to the client device.

According to some embodiments, the present technology is directed to a method for network access control, comprising: (a) determining if a client device is a trusted source for the network using the SYN packet, the SYN packet comprising identifying information for the client device; (b) transmitting a SYN/ACK packet to the client device, the SYN/ACK packet comprising: (1) identifying information for the client device plus an additional value; (2) a SYN cookie, and (3) identifying information for the network device; (c) receiving an ACK packet from the client device to confirm the establishment of a network connection between the network device and the client device; (d) establishing a connection with the network for the client device; and (e) placing the client device on a black list if the client device is subsequently determined to be an untrusted resource.

BRIEF DESCRIPTION OF THE DRAWINGS

Embodiments are illustrated by way of example, and not limitation, in the figures of the accompanying drawings, in which like references indicate similar elements.

FIG. 1 is a network arrangement that provides network access control in accordance with the present disclosure;

FIG. 2 is a signal flow diagram of a method for establishing a network connection between a client device and a network device;

FIGS. 3 and 4 collectively illustrate a flowchart of an exemplary method for network access control, used in some instances for protecting a network against a denial of service attack;

FIG. 5 is a block diagram of another exemplary network arraignment suitable for implementing one or more methods of the present disclosure;

FIG. 6 is a flowchart of a method of network access control;

FIG. 7 is a flowchart of another example method of network access control; and

FIG. 8 is a schematic diagram of an example computing system that can be used to implement the present technology.

DETAILED DESCRIPTION

While this technology is susceptible of embodiment in many different forms, there is shown in the drawings and will herein be described in detail several specific embodiments with the understanding that the present disclosure is to be considered as an exemplification of the principles of the technology and is not intended to limit the technology to the embodiments illustrated.

Reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases “in one embodiment” or “in an embodiment” or “according to one embodiment” (or other phrases having similar import) at various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Furthermore, depending on the context of discussion herein, a singular term may include its plural forms and a plural term may include its singular form. Similarly, a hyphenated term (e.g., “on-demand”) may be occasionally interchangeably used with its non-hyphenated version (e.g., “on demand”), a capitalized entry (e.g., “Software”) may be interchangeably used with its non-capitalized version (e.g., “software”), a plural term may be indicated with or without an apostrophe (e.g., PE's or PEs), and an italicized term (e.g., “N+1”) may be interchangeably used with its non-italicized version (e.g., “N+1”). Such occasional interchangeable uses shall not be considered inconsistent with each other.

It is noted at the outset that the terms “coupled,” “connected”, “connecting,” “electrically connected,” etc., are used interchangeably herein to generally refer to the condition of being electrically/electronically connected. Similarly, a first entity is considered to be in “communication” with a second entity (or entities) when the first entity electrically sends and/or receives (whether through wireline or wireless means) information signals (whether containing data information or non-data/control information) to the second entity regardless of the type (analog or digital) of those signals. It is further noted that various figures (including component diagrams) shown and discussed herein are for illustrative purpose only, and are not drawn to scale.

The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.

Embodiments disclosed herein may be implemented using a variety of technologies. For example, the methods described herein may be implemented in software executing on a computer system or in hardware utilizing either a combination of microprocessors or other specially designed application-specific integrated circuits (ASICs), programmable logic devices like FPGA's, or various combinations thereof. In particular, the methods described herein may be implemented by a series of computer-executable instructions residing on a storage medium such as a disk drive, or computer-readable medium. It should be noted that methods disclosed herein can be implemented by a computer, e.g., a desktop computer, server, tablet computer, laptop computer, smartphone and so forth.

The present disclosure relates generally to data processing, more specifically to security mechanisms that are employed by an Application Delivery Controller (ADC) to prevent a denial of service attack.

Websites, web and mobile applications, cloud computing, and various web and mobile services have been rising in popularity. Some examples of fast growing consumer services include smart phone applications, location based services, navigation services, e-book services, video applications, music applications, Internet television services, and so forth. Subsequently, more and more servers are deployed within data networks, including the Internet, to accommodate the increasing computing and data storage needs. These servers are typically arranged in data centers or web farms, which may include ADCs, GSLB and/or server load balancers (SLBs).

Conventionally, an ADC is a network device disposed in a datacenter and part of an application delivery network (ADN). The ADC functions to perform common tasks, normally done by web servers, in an effort to remove some load from the web servers. ADCs are typically placed between the firewall/router and the host (web) servers. In addition, conventional ADCs may include various features providing for compression, caching, connection multiplexing, application layer security, and content switching. These features may be combined with basic server load balancing, content manipulation, advanced routing strategies, and highly configurable server health monitoring.

Additionally, ADCs may manage load balancing and delivery of service sessions from client host computers to servers based at least in part on incoming service requests. As more servers are deployed, additional ADCs may be deployed. Similarly, as more servers are pooled together within the data center or spread across multiple data centers to provide scalability, ADCs may become bottlenecks slowing data transmissions between peers on the network.

In TCP/IP networks, one method of establishing a connection between two network devices such as a client device and a server, is through the use of a SYN packet, also sometimes referred to as a SYN flag, to synchronize the sequence numbers of the two devices. In this scenario, the client device that wishes to establish the connection first sends a SYN packet from the client to the server. The SYN packet may comprise information within it such as the source IP address, source port, destination IP address, destination port, and a sequence number for the protocol connection. The sequence number may be used by the TCP stack to reassemble the data stream. The first sequence number sent by a network device initiating the communication may be any value as decided by that originating network device.

In a typical TCP/IP stack, a SYN packet is sent from a client device to a server, in an attempt to establish a network connection with that server. Once the server receives the SYN packet, it typically responds with a SYN/ACK to acknowledge receipt of the SYN packet and the request to establish a connection. Upon receipt of the SYN/ACK, the client device typically responds with an acknowledgement, ACK packet, and the network connection is established. Until the server receives the final ACK packet from the client device, the connection is said to be in the half-open phase.

In a stateful TCP/IP stack, a server typically allocates resources to a particular potential network connection when it receives the initial SYN packet from the client device. When the ACK packet is received, the resource gets allocated to a different state. If a server receives a large amount of SYN packets while in the half-open state, it may become overwhelmed by the amount of resources necessary to respond to all of the SYN packets.

In a typical SYN attack, the server gets overwhelmed by SYN packets coming in at a faster rate than it can process them. This may lead to a denial of service by the server, because the server is overwhelmed by the sheer number of SYN packets it receives, such that it doesn't have enough resources to respond to all of the requests, and thus is unable to respond to any of them.

There may also be other types of attacks on a server, such as a spoof. In this scenario, a SYN packet is sent from one device, but the IP address is spoofed, such that it appears to be coming from a different device's IP address. In this scenario, when a SYN packet is sent by the client device to the server, the server may respond with a typical SYN/ACK to the client device from which it appears the message came from. Since the IP address was spoofed, the SYN/ACK message actually arrives at a different device than originally sent the SYN. Thus, the client device that receives the SYN/ACK message may respond with a “reset” instruction since it did not send the original SYN packet and is not interested in establishing a connection with the server at that time.

Another type of attack that may occur on a server is a botnet attack. In this scenario, there may be attack software, such as a trojan, virus, malware, or any other unauthorized software (e.g., malware), installed on a client device. At periodic intervals, the attack software may attempt to establish a connection between the client device that it resides on and the server, unbeknownst to the user of the client device. Since the IP address of the client device that is sending the SYN packet is a legitimate IP address, it will receive the SYN/ACK message, and respond with an ACK packet to establish a proper connection. Once the connection has been established, the unauthorized software on the client device, may then attempt to overwhelm the server and cause it to shut down, send it a virus, or implement any other type of unauthorized software to interfere with the server's operations.

In a typical TCP/IP stack, when a SYN packet is first received by a server, it retains a copy of the SYN packet received, and allocates resources to respond to the SYN packet. This is known as a stateful solution. In a stateless solution, the server does not allocate any resources until the connection is established.

To help protect against these types of attacks, a SYN-cookie may be placed in a SYN/ACK packet. When a server receives a SYN packet while operating in a stateless mode, it can discard the SYN queue entry and transmit a SYN/ACK response to the client in the form of a SYN-cookie. The data in the SYN-cookie may comprise a sequence number of the server, an acknowledgement of the original SYN request, and other information. When the client device receives this SYN-cookie and replies with an ACK packet, that ACK packet may comprise the sequence number of the client, an acknowledgement of the SYN-cookie, and any other information. When the server recognizes the proper acknowledgement of the SYN-cookie that it sent, it can then confirm that the client device is trying to establish a legitimate connection and the client's IP address has not been spoofed.

A SYN cookie may be an initial sequence number that is carefully constructed according to various rules, including a slowly incrementing timestamp, a maximum segment size value, a cryptographic hash function computed over a network device's IP address and port number, the client's IP address and port number, and the timestamp, or any other value or combination thereof.

The present technology provides various systems and methods for operation of a service on a network. It provides technology to identify botnets, trojans, viruses, malware, and other type of unauthorized services from accessing and overwhelming a network device providing a service. These systems and methods may be utilized to prevent a denial of service attack.

The present technology may be implemented on a network device in a data network such as the Internet including a plurality of switches, routers, virtual switches, web farms, host servers, and other units. The present technology provides enhanced performance and security of a network device such as an Application Delivery Controller (ADC) and allows implementing scalable business solutions for any services, applications, clouds and organizations. Furthermore, the present technology provides a scalable, high-performance application networking platform, which can deliver superior reliability, security, and energy efficiency at lower total cost of ownership. ADC can also provide increased infrastructure efficiency, a faster end user experience, comprehensive Layer 4-7 feature set and flexible virtualization technologies such as Virtual Chassis System, multi-tenancy, and more for public, private and hybrid cloud environments. The network devices may include software and/or hardware components/platforms that may vary depending on a particular application, performance, infrastructure, network capacity, data traffic parameters, and so forth. A more detailed explanation of an exemplary method of ADC operation is described in U.S. utility patent application Ser. No. 13/791,760, filed on Mar. 8, 2013, titled “Application Delivery Controller and Global Server Load Balancer” which is incorporated herein by reference in its entirety.

Turning now to FIG. 1, a high-level block diagram of an exemplary symmetric network topology 100 suitable for implementing one or more methods of the present disclosure is shown. The network topology 100 shown by FIG. 1 may include a number of host servers 105A-N, a number of switches, such as switch 110A and switch 110E combining/coupling the host servers 105A-N and thus performing Layer 2 aggregation and corresponding switching. The topology 100 may further include an ADC 115 including one (or more) ADC switches, such as ADC switch 120A and ADC switch 120B. The ADC switches may operate in different modes, such as standalone, active/standby mode, active-Active and others.

The topology 100 may further include a communications network 125, which may refer to, for example, the Internet, Local Area Network (LAN), Wide Area Network (WAN), Internet, a cellular network, a telephone network, or any other switched network or their combinations. There is also a plurality of clients 130A-N, which may include end user computers, mobile phones, thin clients, and so forth. There are also one or more Local DNS Servers 140A-N which may be associated with one or more clients 130A-N and/or one or more host servers 105A-N. As shown in FIG. 1, the topology may include a GSLB 135, which may employ one or more of the methods disclosed herein.

Generally speaking, load balancing is a technique that may be used for distributing the workload evenly across clients, networks, host servers, and other networked resources. The load balancing may enhance utilization of resources and enable maximize throughput with minimum response time, hence avoiding overloading of a single server. Global Server Load Balancing (GSLB) is an extension of the load balancing. With this technology, network traffic is among different web farms, data centers, and host servers located at different geographical locations. This technology may be highly efficient in avoiding local downtimes and remote downtimes. Furthermore, as will be appreciated by those skilled in the art, ADC 115 may act as a master to monitor “health” and responsiveness of other sites hosted by the host servers 105A-N. A GSLB 135 may be configured to redirect service requests to other nearby host servers if one of the host servers does not respond timely. For example, the GSLB 135 may redirect service requests from client 130A for a service from host server 105A to host server 105B if client 130A experiences deleterious performance issues such as latency issues caused by host server 105A underperformance.

Furthermore, this technique may allow forwarding visitor requests to a host server located most closely geographically to the place from where the request sent. In addition, if a traffic threshold is reached at the most geographically proximate host server, the service requests may be forwarded to other host servers located at a different geographical location.

As will be appreciated by those skilled in the art, an ADC switch, such as ADC switch 120A may operate in an active mode, backup mode, or some other modes depending on an application. The ADC switches 120A and 120B provide redundancy protection and failover protection for selected networks or parts of the network 125. The ADC switches 120A and 120B also report their status (i.e., current operating mode) to selected network elements or other switches 110A and/or 110B, for example.

FIG. 2 illustrates a method of operation for a network device, such as ADC 115, host servers 105A-N, switches 120A-B. The network device is configured to provide network security operations. Broadly described, components of the network 125 use various SYN packet/cookie processes to effectuate security operations. In an example, the client device 130A may be required to transmit a SYN packet prior to registration on the network. Thus, to access a service on the network the client device 130A will transmit to the network a SYN packet. The composition of the SYN packet may be any single or composition of characteristics such as a sequence number, an IP address, a MAC (Media Access Control) address, IMEI (International Mobile Equipment Identity), SSID (Service Set Identifier), a source port, or any other identifying characteristic that can be used to identify a device on a network.

The network device, such as the ADC 115, may receive a SYN packet from a client device 130A to initiate a network connection in step 205. Once received, the network device may perform a SYN packet analysis in step 210. Various methods may be used in the SYN packet analysis.

For example, the network device may then use a lookup table in step 210 to determine whether the client device 130A is already on a white list of trusted devices, or a black list of untrusted devices. The lookup table is in a database, or any other data structure. The lookup table may be stored on computer readable medium on the network device, or in a remote location accessible by the network device. The white list and black list of trusted devices and untrusted devices are recorded in each respective list by source IP address, source port, or any other identifying characteristic in the received SYN packet from the client device 130A. The white list and black list are created and administered by a network administrator, and may be periodically updated. The white list and black list may also incorporate various network policies deployed by the network administrator.

If the client device 130A is found on a black list of devices, SYN packets received from the client device 130A are dropped. That is, the client device 130A is not allowed access to the network.

If the client device 130A that is wishing to initiate the network connection is not found in step 210 on either the white list or the black list, then the network device may send a SYN/ACK message with a SYN-cookie to the client device 130A in step 215. The SYN-cookie may comprise a sequence number that identifies the network device, an ACK number acknowledging the sequence number from the SYN packet, and/or any other identifying information that is representative of the network device. The SYN cookie is stored on the client device 130A.

In exemplary embodiments, an original SYN packet from a client device 130A may have a sequence number (or other identifying information) that represents the client device 130A. A SYN/ACK packet is returned to the client device 130A from the network device. This SYN/ACK message comprises the client's sequence number (as found in the original SYN packet) plus one, and a sequence number that identifies the network device. An ACK packet/message is subsequently returned by the client device 130A in step 220 to confirm the connection. The ACK packet may comprise the sequence number for the network device network device plus one. The network device verifies the information in the ACK message in step 225 and establishes the network connection in step 230.

FIGS. 3 and 4 illustrate embodiments of a method where a network administrator may optionally choose to enable a SYN-cookie tolerance level and other optional features. Generally, the process is initiated as above, with the network device receiving a SYN packet from the client device in block 305. Next, the network device looks up the client device as identified in the SYN packet in block 310. If the device is on a blacklist, the SYN packets are dropped in block 315. If the device is not found in a black or white list the network device returns a SYN/ACK message in block 320.

In the event that the client device is on a white list or has been transmitted a SYN/ACK message by the network device, the network device may execute a SYN-cookie tolerance analysis in block 325. In general, a SYN-cookie tolerance level may specify a certain number of times that a client device can fail to return the proper sequence numbers in a SYN-cookie before the client is added to the black list in block 340.

If the client device 130A is already on the white list of trusted sources, then the network device may check whether a SYN-cookie tolerance level for the particular client device 130A has been enabled. It will be understood that there are a number of reasons why a client device may return an improper SYN-cookie in its ACK packet to the network device, such as a networking delay, hardware issues, and so forth. Thus, in some embodiments, the network administrator may have the option of enabling a SYN-cookie tolerance threshold that may specify the number of times a client device must fail to return the matching SYN cookie before the client device is added to the black list in block 340.

If the SYN-cookie tolerance feature is enabled, then the network device may send the client device 130A a SYN/ACK with a SYN cookie. If the SYN cookie tolerance level is not enabled, then the network device may check whether the client device 130A has exceeded a connection rate/limit policy in block 345. A connection rate/limit policy connection rate/limit policy may define a number of times a client device 130A may attempt to connect to the network device in a given time period. The connection rate/limit policy may check one or more characteristics of the client device, such as source IP address, source port, timestamp, or any other characteristic. The specific characteristics that are checked may be configurable by a network administrator, or are predetermined by the network device.

If the client device has exceeded the allowable connection rate/limit policy, then the network device may either simply drop the packet at block 315 and not allow the network connection to be established, or it may add the client device to the black list of untrusted sources in block 340. This determination is, in one embodiment, based on which of the one or more source characteristics have exceeded the allowable rate limit (i.e., source port, IP address, wrong timestamp, and so forth.). Exceeding the allowable connection rate/limit policy may indicate to the network device that the client device may be a botnet, or any other type of unauthorized program that may be attempting to overwhelm the network device and cause it to stop functioning properly. If the client device has exceeded an allowable rate limit and the SYN packet is dropped by the network device in block 315 and no reply is sent to the client device.

In various embodiments, a determination is whether the client device has exceeded a connection rate/limit policy despite being on the white list since the client device may still be a spoof. In a spoof attack, the source IP address may be rotated, but the source port may remain the same. For example, a client device may use an IP address of 123.12.12.1 with a port of :80 in a first instance, and a second IP address 132.34.34.2 with a port of :80 in a second instance.

Thus, querying the number of times a source IP address has attempted to connect to the network device will yield a different result than querying the number of times a source port has attempted to connect to the network device. Therefore, despite being on the white list for trusted sources, the client device may still need to be authenticated by checking the connection rate/limit policy for other characteristics of the client device.

If the connection rate/limit policy(s) has been exceeded for a client device, then the client device may be added to the black list of untrusted sources in block 340. In some embodiments, an unauthorized source may attempt to connect to the network device via constantly guessing a SYN-cookie. In this embodiment, the network device may deploy a check on the rate limit of SYN-cookies received from a particular client in block 345.

If a rate limit or number of SYN-cookies received from a particular source has exceeded a threshold, the SYN packet from the client device may be dropped in block 315. If the rate limit or number of SYN-cookies has not exceeded the threshold, the network device may reply with a SYN-cookie reply ACK in block 355 to begin the network connection. The particular rate limit or number of SYN-cookies that are authorized from a client device may be preset by the network device, or configurable by a network administrator. Additionally, the allowable threshold may be variable based on any characteristic in the SYN packet, such as geographic region, timestamp, source IP address, source port, destination IP address, destination port, and so forth. For example, if the client device is located in a geographical region known for originating malware or fraudster activity, the network administrator may set the rate limit or number of SYN-cookies for that area lower than a more trusted geographical location.

If the connection rate/limit policy has not been exceeded, then a network connection is established between the client device and the network device in block 360, and packets from the client device may enter the flow process for the network.

After receiving a SYN/ACK, when a client returns the ACK packet in block 405, a determination may occur as to whether the particular flow has already been observed in block 410. The determination is based on the sequence numbers in the ACK packet and SYN-cookie, or any other characteristic or combinations thereof.

If the flow was previously observed by the network device, then the packet from the client device may enter the flow process for the network, in block 415. That is, the client device is permitted to use the network connection. If the flow has not been previously observed by the network device, then the SYN-cookie returned by the client device with the ACK packet may be checked by the network device in block 420. If the SYN-cookie is determined to be correct and the SYN-cookie check passes, then the client device is added to the white list in block 425, even if the client device was previously on the black list. The network connection is reset between the network device and client device in block 430.

If the SYN-cookie check fails, then the network device may determine whether an optional SYN-cookie tolerance level has been enabled in block 435. If not, then the client device may be added to the black list in block 440 and the packet may be dropped by the network device in block 455 such that no return message is sent to the client device and no connection is established. If a SYN-cookie tolerance level is enabled, then the SYN-cookie threshold may be decreased by one in block 445. Since the client has failed to return the proper SYN-cookie, the threshold level is decreased. For example, if the initial SYN-cookie tolerance level is five attempts, the first time the client device fails to return the proper SYN-cookie, the tolerance level may be decreased by one such that four attempts are remaining. Each improper SYN-cookie return results in a decrease of the tolerance level in an iterative fashion, until the threshold reaches zero in block 450 such that no more attempts remain. If the threshold has reached zero, then the client device is to the black list and the packet may be dropped by the network device in block 455.

The SYN-cookie check and SYN-cookie tolerance may be employed in various embodiments to prevent an ACK attack. An ACK attack may occur when a client device repeatedly sends ACK packets to a network device by continually attempting to reconstruct the SYN-cookie. Thus, in certain embodiments, it may be beneficial to limit the number of ACK packets the network device may receive from a client device that do not pass the SYN-cookie check.

FIG. 5 illustrates a block diagram of an exemplary network topology 500 operating in an “Asymmetric” mode, also sometimes known as “Direct Server Return” mode. In this mode, a client 530A may submit a request for services. The request is transmitted through the communications network 525 to the ADC 515. Once the ADC 515 can verify that the client is a trusted source and the request is legitimate using a SYN-cookie or any other verification method, the ADC 515 may forward the request to one or more host servers 505. The one or more host servers 505 may then return the response data directly to the client 530A. Typically, the flow of traffic from the host servers 505 to the client 530A is greater than the flow of traffic from the client 530A to the host servers 505. Thus, by monitoring the traffic in both directions, the ADC 515 may become a bottleneck in the network, since it may not be able to process such large volumes of traffic. By sending the response data directly from the host servers 505 to the client 530A, the ADC 515 has less traffic to process, and is less likely to slow down the flow of traffic in the network.

The above described systems and methods are implemented on a network device positioned in a symmetric (FIG. 1) or asymmetric network topology (FIG. 5). A symmetric network topology may place the network device in line with the flow of traffic between the server and client device, such that all communications between the server and client device pass through the network device. In an asymmetric network topology (FIG. 5), a different path is used for traffic flowing to and from the server, such that the network device placed between the client and server may only see the traffic flow in one direction.

In certain embodiments, the above described methods and system may operate in a stateless mode. In a stateless mode, the network device does not retain a record of previous interactions, and thus each interaction and request by the client device is handled based on information that is received with the request. Through the use of the SYN-cookie, the network device may have enough information to evaluate and authenticate the client device without retaining information about the prior SYN packet received from the client device.

Though the above described methods and systems for operation of network devices have been described for preventing attacks on a network device by instituting rate limits in the context of SYN packets on an TCP/IP network, similar methods and systems may also be applied on other types of networks, including a UDP network. For example, a network device on a UDP network may also determine whether a source rate limit has been exceeded, or institute other metrics or network key performance indicators (KPI).

FIG. 6 is a method for network access control. The method includes receiving at a network device a SYN packet from a client device over a network, in step 605. As mentioned above, the SYN packet comprises identifying information for the client device. Next, the method includes determining if the client device is a trusted source for the network using the SYN packet in step 610. Many different methods may be used to determine if the client device is trusted, such as using a determining if the client device is on a black or white list, determining if the client device has transmitted to the network device a number of ACK packets that include an incorrect SYN cookie, determining if client device has violated an allowable connection rate policy, and/or determining if the client device has exceeded an allowable rate limit of SYN cookies, as well as other methods described herein.

If the client device is a trusted resource, the method further includes receiving an acknowledgement (ACK) packet from the client device that includes identifying information for the client device and identifying information for the network device, in step 615. Next, the method includes establishing a connection with the network for the client device, in step 620. If the client device is determined not to be a trusted device, the method may include dropping the SYN packet to deny network access to the client device, in step 625.

FIG. 7 is a flowchart of a method for providing network access. The method may include determining, in step 705, if a client device is a trusted source for the network using the SYN packet. In general, the SYN packet comprises identifying information for the client device such as an IP address, a port, a MAC address or other identifying information.

This information can be searched against a database that includes black and white lists of device identifiers that are known to be untrusted sources (black list) or trusted sources (white list). If the system is unable to determine from the SYN information if the client device is trusted or untrusted, the method includes transmitting a SYN/ACK packet to the client device, in step 710. In some embodiments, the SYN/ACK packet comprises: (a) identifying information for the client device plus an additional value; (b) a SYN cookie, and (c) identifying information for the network device.

Next, the method comprises the network device receiving an ACK packet from the client device to confirm the establishment of a network connection between the network device and the client device in step 715. If the ACK packet is received, the method includes establishing, at step 720, a connection with the network for the client device.

During network sessions, the method may include placing the client device on a black list if the client device is subsequently determined to be an untrusted resource. For example, the client device may use an incorrect SYN cookie a certain number of times. In another example, the client device may violate an allowable connection rate policy or may be found to create a network packet flow has been not been previously observed within the network. Any of these examples may indicate that the client device is acting maliciously on the network. In these instances, the client device can be placed onto a black list and its future network packets dropped so as to prevent the establishment of a network connection for the client device with the network.

FIG. 8 illustrates an exemplary computing system 1 that is to implement an embodiment of the present systems and methods. The computing system 1 of FIG. 8 may be implemented in the contexts of the likes of the server 105 described herein. The computing system 1 of FIG. 8 includes a processor 10 and main memory 20. Main memory 20 stores, in part, instructions and data for execution by processor 10. Main memory 20 may store the executable code when in operation. The computing system 1 of FIG. 8 further includes a mass storage device 30, portable storage device 40, output devices 50, user input devices 60, a display system 70, and peripherals 80.

The components shown in FIG. 8 are depicted as being connected via a single bus 90. The components may be connected through one or more data transport means. Processor 10 and main memory 20 may be connected via a local microprocessor bus, and the mass storage device 30, peripherals 80, portable storage device 40, and display system 70 may be connected via one or more input/output (I/O) buses.

Mass storage device 30, which may be implemented with a magnetic disk drive or an optical disk drive, is a non-volatile storage device for storing data and instructions for use by processor 10. Mass storage device 30 can store the system software for implementing embodiments of the present technology for purposes of loading that software into main memory 20.

Portable storage device 40 operates in conjunction with a portable non-volatile storage medium, such as a floppy disk, compact disk or digital video disc, to input and output data and code to and from the computing system 1 of FIG. 8. The system software for implementing embodiments of the present technology may be stored on such a portable medium and input to the computing system 1 via the portable storage device 40.

Input devices 60 provide a portion of a user interface. Input devices 60 may include an alphanumeric keypad, such as a keyboard, for inputting alphanumeric and other information, or a pointing device, such as a mouse, a trackball, stylus, or cursor direction keys, or a scanner for reading bar codes. Additionally, the computing system 1 as shown in FIG. 8 includes output devices 50. Suitable output devices include speakers, label and receipt printers, network interfaces, and monitors.

Display system 70 may include a liquid crystal display (LCD) or other suitable display device. Display system 70 receives textual and graphical information, and processes the information for output to the display device.

Peripherals 80 may include any type of computer support device to add additional functionality to the computing system. Peripherals 80 may include a modem or a router.

The components contained in the computing system 1 of FIG. 8 are those typically found in computing systems that may be suitable for use with embodiments of the present technology and are intended to represent a broad category of such computer components that are well known in the art. Thus, the computing system 1 can be a personal computer, hand held computing system, telephone, mobile computing system, workstation, server, minicomputer, mainframe computer, or any other computing system. The computer can also include different bus configurations, networked platforms, multi-processor platforms, etc. Various operating systems can be used including UNIX, Linux, Windows, Macintosh OS, Palm OS, and other suitable operating systems.

Some of the above-described functions may be composed of instructions that are stored on storage media (e.g., computer-readable medium). The instructions may be retrieved and executed by the processor. Some examples of storage media are memory devices, tapes, disks, and the like. The instructions are operational when executed by the processor to direct the processor to operate in accord with the technology. Those skilled in the art are familiar with instructions, processor(s), and storage media.

It is noteworthy that any hardware platform suitable for performing the processing described herein is suitable for use with the technology. The terms “computer-readable storage medium” and “computer-readable storage media” as used herein refer to any medium or media that participate in providing instructions to a CPU for execution. Such media can take many forms, including, but not limited to, non-volatile media, volatile media and transmission media. Non-volatile media include, for example, optical or magnetic disks, such as a fixed disk. Volatile media include dynamic memory, such as system RAM. Transmission media include coaxial cables, copper wire and fiber optics, among others, including the wires that comprise one embodiment of a bus. Transmission media can also take the form of acoustic or light waves, such as those generated during radio frequency (RF) and infrared (IR) data communications. Common forms of computer-readable media include, for example, a floppy disk, a flexible disk, a hard disk, magnetic tape, any other magnetic medium, a CD-ROM disk, digital video disk (DVD), any other optical medium, any other physical medium with patterns of marks or holes, a RAM, a PROM, an EPROM, an EEPROM, a FLASHEPROM, any other memory chip or data exchange adapter, a carrier wave, or any other medium from which a computer can read.

Various forms of computer-readable media may be involved in carrying one or more sequences of one or more instructions to a CPU for execution. A bus carries the data to system RAM, from which a CPU retrieves and executes the instructions. The instructions received by system RAM can optionally be stored on a fixed disk either before or after execution by a CPU.

Computer program code for carrying out operations for aspects of the present technology may be written in any combination of one or more programming languages, including an object-oriented programming language such as Java, PHP, MySQL, HTML, Java Script, CSS, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).

The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present technology has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. Exemplary embodiments were chosen and described in order to best explain the principles of the present technology and its practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.

Aspects of the present technology are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.

The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

While the present invention has been described in connection with a series of preferred embodiment, these descriptions are not intended to limit the scope of the invention to the particular forms set forth herein. It will be further understood that the methods of the invention are not necessarily limited to the discrete steps or the order of the steps described. To the contrary, the present descriptions are intended to cover such alternatives, modifications, and equivalents as may be included within the spirit and scope of the invention as defined by the appended claims and otherwise appreciated by one of ordinary skill in the art. 

What is claimed is:
 1. A system for network access control, system comprising: a network device comprising one or more processors; and a memory communicatively coupled to the network device, the memory storing instructions executable by the one or more processors of the network device, the network device being configured to: determine whether a client device is a trusted source, an untrusted source, or neither the trusted source nor the untrusted source for a network using a SYN packet received from the client device, the SYN packet comprising identifying information for the client device; based on the determination that the client device is neither the trusted source nor the untrusted source, transmit a SYN/ACK packet to the client device, the SYN/ACK packet comprising a SYN cookie and identifying information for the network device; receive an ACK packet from the client device that includes the identifying information for the client device, identifying information for the network device, and the SYN cookie; determine whether the SYN cookie received in the ACK packet from the client device is a correct SYN cookie or an incorrect SYN cookie, the correct SYN cookie being based on information provided to the client device in the SYN cookie of the SYN/ACK packet; when the SYN cookie received from the client device is the incorrect SYN cookie, apply a SYN cookie tolerance level to determine whether a number of times the client device provided the incorrect SYN cookie in one or more ACK packets when attempting to connect to the network device exceeds a predetermined threshold, wherein a connection is established when the number of times the client device provides the incorrect SYN cookie is below the predetermined threshold; and when the SYN cookie received in the ACK packet from the client device is the correct SYN cookie, establish the connection with the network for the client device.
 2. The system of claim 1, wherein the network device is further configured to place the client device on a black list if the client device is subsequently determined to be the untrusted source.
 3. The system of claim 1, wherein the network device is further configured to drop, based on determining that the client device is the untrusted source, the SYN packet to deny network access to the client device.
 4. The system of claim 1, wherein the network device is further configured to transmit, based on determining that the client device is the trusted source, a SYN/ACK packet to the client device, the SYN/ACK packet comprising identifying information for the network device; receive an ACK packet from the client device that includes the identifying information for the client device and the identifying information for the network device; and establish the connection with the network for the client device.
 5. The system according to claim 1, wherein the SYN cookie comprises one or more of the following: a maximum segment size value and a cryptographic hash function computed using at least one of an IP address of the network device, a port number of the network device, an IP address of the client device, and a port number of the client device.
 6. The system according to claim 1, wherein the network device is further configured to: receive a number of ACK packets from the client device that include an incorrect SYN cookie, wherein the incorrect SYN cookie comprises identifying information for the client device that is incorrect or identifying information for the network device that is incorrect; apply a SYN cookie tolerance level, wherein the SYN cookie tolerance level specifies a number of times the client device is allowed to supply the incorrect SYN cookie; add the identifying information for the client device to a black list if the client device exceeds the SYN cookie tolerance level, the black list storing identifying information for one or more untrusted sources; and drop subsequent SYN packets or ACK packets received from the client device.
 7. The system according to claim 1, wherein the network device is further configured to: set an allowable connection rate policy for the client device, wherein the allowable connection rate policy specifies a maximum number of times the client device is to attempt to connect to the network in a given time period; add the identifying information for the client device to a black list if the client device violates the allowable connection rate policy; and drop subsequent SYN packets or ACK packets received from the client device.
 8. The system according to claim 1, wherein the network device is further configured to perform a SYN cookie check, the SYN cookie check comprising comparing information in the SYN cookie received in the ACK packet from the client device with information in the SYN cookie provided by the network device in the SYN/ACK packet, wherein the establishing of the connection is performed based on passing, by the client device, the SYN cookie check.
 9. A method for network access control, the method comprising: determining, at a network device, whether a client device is a trusted source, an untrusted source, or neither the trusted source nor the untrusted source for a network using a SYN packet received from the client device, the SYN packet comprising identifying information for the client device; based on determining that the client device is neither the trusted source nor the untrusted source, transmitting a SYN/ACK packet to the client device, the SYN/ACK packet comprising a SYN cookie and identifying information for the network device; receiving an ACK packet from the client device that includes the identifying information for the client device, identifying information for the network device, and the SYN cookie; determining whether the SYN cookie received in the ACK packet from the client device is a correct SYN cookie or an incorrect SYN cookie, the correct SYN cookie being based on information provided to the client device in the SYN cookie of the SYN/ACK packet; when the SYN cookie received from the client device is the incorrect SYN cookie, applying a SYN cookie tolerance level to determine whether a number of times the client device provided the incorrect SYN cookie in one or more ACK packets when attempting to connect to the network device exceeds a predetermined threshold, wherein a connection is established when the number of times the client device provides the incorrect SYN cookie is below the predetermined threshold; and when the SYN cookie received in the ACK packet from the client device is the correct SYN cookie, establishing the connection with the network for the client device.
 10. The method of claim 9, further comprising placing the client device on a black list if the client device is subsequently determined to be the untrusted source.
 11. The method of claim 9, further comprising dropping, based on determining that the client device is the untrusted source, the SYN packet to deny network access to the client device.
 12. The method of claim 9, further comprising: based on determining that the client device is the trusted source, transmitting a SYN/ACK packet to the client device, the SYN/ACK packet comprising identifying information for the network device; receiving an ACK packet from the client device that includes the identifying information for the client device and the identifying information for the network device; and establishing the connection with the network for the client device.
 13. The method of claim 9, wherein the establishing the connection comprises connecting the client device to a host server such that network traffic flows directly from the host server to the client device.
 14. The method according to claim 9, further comprising: receiving a number of ACK packets from the client device that include an incorrect SYN cookie, wherein the incorrect SYN cookie comprises identifying information for the client device that is incorrect or identifying information for the network device that is incorrect; applying a SYN cookie tolerance level, wherein the SYN cookie tolerance level specifies a number of times the client device is allowed to supply the incorrect SYN cookie; adding the identifying information for the client device to a black list if the client device exceeds the SYN cookie tolerance level, the black list storing identifying information for one or more untrusted sources; and dropping subsequent SYN packets or ACK packets received from the client device.
 15. The method according to claim 9, further comprising: setting an allowable connection rate policy for the client device, wherein the allowable connection rate policy specifies a maximum number of times the client device is to attempt connecting to the network in a given time period; adding the identifying information for the client device to a black list if the client device violates the allowable connection rate policy; and dropping subsequent SYN packets or ACK packets received from the client device.
 16. The method according to claim 9, further comprising: performing a SYN cookie check, the SYN cookie check comprising comparing information in the SYN cookie received in the ACK packet from the client device with information in the SYN cookie provided by the network device in the SYN/ACK packet, wherein the establishing of the connection is performed based on passing, by the client device, the SYN cookie check.
 17. The method according to claim 9, further comprising: setting a SYN cookie threshold, wherein the SYN cookie threshold identifies a total number of times the client device is to provide the SYN cookie to the network device; for each time the client device provides the SYN cookie to the network device, reducing the SYN cookie threshold by one until the SYN cookie threshold is zero; when the SYN cookie threshold is zero, adding the identifying information for the client device to a black list; and dropping subsequent SYN packets or ACK packets received from the client device.
 18. A non-transitory computer-readable storage medium having embodied thereon a program executable by at least one processor to perform a method for network access control, the method comprising: determining, at a network device, whether a client device is a trusted source, an untrusted source, or neither the trusted source nor the untrusted source for a network using a SYN packet received from the client device, the SYN packet comprising identifying information for the client device; based on determining that the client device is neither the trusted source nor the untrusted source, transmitting a SYN/ACK packet to the client device, the SYN/ACK packet comprising a SYN cookie and identifying information for the network device; receiving an ACK packet from the client device that includes the identifying information for the client device, identifying information for the network device, and the SYN cookie; determining whether the SYN cookie received in the ACK packet from the client device is a correct SYN cookie or an incorrect SYN cookie, the correct SYN cookie being based on information provided to the client device in the SYN cookie of the SYN/ACK packet; when the SYN cookie received from the client device is the incorrect SYN cookie, applying a SYN cookie tolerance level to determine whether a number of times the client device provided the incorrect SYN cookie in one or more ACK packets when attempting to connect to the network device exceeds a predetermined threshold, wherein a connection is established when the number of times the client device provides the incorrect SYN cookie is below the predetermined threshold; and when the SYN cookie received in the ACK packet from the client device is the correct SYN cookie, establishing the connection with the network for the client device. 